package br.unifesp.lma.chamada.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import br.unifesp.lma.chamada.model.entity.Aula;

@Repository
public class AulaDAO extends BaseDAO<Aula> {

	public AulaDAO() {
		super(Aula.class);
	}

	@Override
	public List<Aula> getAll() {
		return super.query().order("data").list();
	}

	public List<Aula> listByDisciplina(Long disciplinaId) {
		return super.query().order("data").filter("disciplinaId", disciplinaId).list();
	}
}
